/**
 * @description 用户部门管理
 * @author zhu_liangyu
 * @since 2021/12/23
 */
import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import service from "/@/utils/request";
import { SystemParam } from "/@/_types/api";


class ManagerServiceApi extends OrgServiceApi {
    fetchRoleList(queryParam?: SystemParam | null, params?: any): Promise<AxiosResponse<any>> {
        let url = this.baseUrl + "/fetchRoleList";
        return service.get(url, { params: { ...params, ...queryParam } })
    }

    fetchDeptRoleList(queryParam?: SystemParam | null, params?: any): Promise<AxiosResponse<any>> {
        let url = this.baseUrl + "/fetchDeptRoleList";
        return service.get(url, { params: { ...params, ...queryParam } })
    }
}
const managerServiceApi = new ManagerServiceApi("/ManagerService");

export default managerServiceApi;